﻿package{
	
	
	import flash.display.Sprite;
	import flash.display.MovieClip;
	import flash.text.TextField;
	import flash.events.MouseEvent;
	import flash.events.Event;
	
	public class Menu_Pause extends MovieClip{
		
		public static var menuPause;
		
		public function Menu_Pause(){
			
			
			
			addEventListener(Event.ADDED_TO_STAGE, Init);
			
		}
		
		private function Init(e:Event) {
			removeEventListener(Event.ADDED_TO_STAGE, Init);
			
			menuPause = this;
			
			Resume.addEventListener(MouseEvent.CLICK, onClickResume);
			Quit.addEventListener(MouseEvent.CLICK, onClickQuit);
		}
		
		public function onClickResume(e:MouseEvent = null) {
			
			//창 닫기
			
			trace(this, ": onClickResume");
			
			dispatchEvent(new NavigationEvent(NavigationEvent.CLOSE, "pause", this));
			
		}
		
		public function onClickQuit(e:MouseEvent = null):void {
			
			//메인으로 가기
			
			trace(this, ": onClickQuit");
			
			dispatchEvent(new NavigationEvent(NavigationEvent.QUIT, "pause", this));
			
			
		}
		
	}
	
	
}